package com.zx.jhpt.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.zx.framework.plat.dept.po.Dept;

public class DeptCache {
	
	private static final Map<String, Dept> map = new HashMap<String, Dept>();
	
	public static Dept getDept(String id){
		return map.get(id);
	}
	
	public static void  init(List<Dept> depts){
		for (Dept dept : depts) {
			map.put(dept.getId(), dept);
		}
	}
}
